<%@page import="systems.AdsSystem"%>
<%@page import="helpers.StringHelper"%>
<%@page import="helpers.UrlHelper"%>
<%@page import="entities.Directory"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%
Directory directory = (Directory) request.getAttribute("directory");
List<String> domains = directory.getDomains();

//Set content for seo
String title = "Secure web pages which word first is " + directory.getId() + " - checkwebsafe.com ";
String description = "Collection alll secure site which word first is " + directory.getId() + ". Some secure web pages as :" + StringHelper.listToString(domains, ", ", 5);
String keywords = "directory " + directory.getId() + ", web safe, security sites, directory web safe, directory site safe, protecting a website" ;
String url = UrlHelper.getServerUrl(request) + "/directory/" + directory.getId();
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/layouts/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
    <jsp:param name="description" value="<%=description %>" />
    <jsp:param name="keywords" value="<%=keywords %>" />
    <jsp:param name="ogtitle" value="<%=title %>" />
    <jsp:param name="ogurl" value="<%=url %>" />
    <jsp:param name="ogdescription" value="<%=description%>" />
</jsp:include>

<script type="text/javascript" src="/js/directory.js"></script>

<script type="text/javascript">
var c = "<%=directory.getId()%>";
</script>
		<div class="top-adv">
			<%=AdsSystem.getAds728x90() %>
		</div>
		
		
		<div class="row-fluid">
			<div class="span12 content-box">
				<div class="content-box-header">
	    			<i class="icon-sitemap"></i> Directory
	    		</div>

				<div class="directory clearafter title">
                	<a href="/directory/a" class="label label-info">a</a>
                	<a href="/directory/b" class="label label-info">b</a>
                	<a href="/directory/c" class="label label-info">c</a>
                	<a href="/directory/d" class="label label-info">d</a>
                	<a href="/directory/e" class="label label-info">e</a>
                	<a href="/directory/f" class="label label-info">f</a>
                	<a href="/directory/g" class="label label-info">g</a>
                	<a href="/directory/h" class="label label-info">h</a>
                	<a href="/directory/i" class="label label-info">i</a>
                	<a href="/directory/j" class="label label-info">j</a>
                	<a href="/directory/k" class="label label-info">k</a>
                	<a href="/directory/l" class="label label-info">l</a>
                	<a href="/directory/m" class="label label-info">m</a>
                	<a href="/directory/n" class="label label-info">n</a>
                	<a href="/directory/o" class="label label-info">o</a>
                	<a href="/directory/p" class="label label-info">p</a>
                	<a href="/directory/q" class="label label-info">q</a>
                	<a href="/directory/r" class="label label-info">r</a>
                	<a href="/directory/s" class="label label-info">s</a>
                	<a href="/directory/t" class="label label-info">t</a>
                	<a href="/directory/u" class="label label-info">u</a>
                	<a href="/directory/v" class="label label-info">v</a>
                	<a href="/directory/w" class="label label-info">w</a>
                	<a href="/directory/x" class="label label-info">x</a>
                	<a href="/directory/y" class="label label-info">y</a>
                	<a href="/directory/z" class="label label-info">z</a>
                	<a href="/directory/0" class="label label-info">0</a>
                	<a href="/directory/1" class="label label-info">1</a>
                	<a href="/directory/2" class="label label-info">2</a>
                	<a href="/directory/3" class="label label-info">3</a>
                	<a href="/directory/4" class="label label-info">4</a>
                	<a href="/directory/5" class="label label-info">5</a>
                	<a href="/directory/6" class="label label-info">6</a>
                	<a href="/directory/7" class="label label-info">7</a>
                	<a href="/directory/8" class="label label-info">8</a>
                	<a href="/directory/9" class="label label-info">9</a>
                </div>
                
				<div class="padded">
					<ul class="list-domain row5 clearfix">
						<% for (int i = 0; i < domains.size(); i++) { %>
						<li><a href="/www/<%=domains.get(i)%>"><%=domains.get(i)%></a></li>
						<% } %>
					</ul>
					
				</div>
			</div>
		</div>
				
<jsp:include page="/layouts/footer.jsp" />